<template>
  <div class="dashboard-container">
    <el-button @click="downloadFile">下载</el-button>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import * as api from './api/api'

export default {
  name: 'Dashboard',
  data() {
    return {
      list: null,
      shPrice: 0,
      shRate: 0,
      szIndex: 0,
      szRate: 0,
      cyIndex: 0,
      cyRate: 0,
      tableData: [],
      loading: true
    }
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  },
  mounted() {
  },
  methods: {
    downloadFile() {
      window.open(process.env.VUE_APP_BASE_API + '/download')
    }
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
